// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_b;

import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteStatement;
import com.nnee.p_b.p_a.cls_d;
import com.nnee.p_d.cls_b;
import com.nnee.p_d.cls_c;
import com.nnee.p_pr.p_a.cls_r;
import com.nnee.p_pr.p_app.cls_e;
import com.nnee.p_pr.p_atom.cls_n;
import com.nnee.p_pr.p_prov.cls_ac;
import com.nnee.p_pr.p_prov.cls_ae;
import java.util.ArrayList;
import java.util.LinkedList;

public class cls_a
{

    public cls_a()
    {
    }

    public static String A()
    {
        return b("pris_subGet", null);
    }

    public static void A(String s1)
    {
        a("pris_favoriteAdd", s1);
    }

    public static String B()
    {
        return b("pris_subAdd", null);
    }

    public static void B(String s1)
    {
        a("pris_favoriteDel", s1);
    }

    public static String C()
    {
        return b("pris_subDel", null);
    }

    public static void C(String s1)
    {
        a("pris_favoriteGet", s1);
    }

    public static String D()
    {
        return b("pris_subGetSummary", null);
    }

    public static void D(String s1)
    {
        a("pris_statisticsReport", s1);
    }

    public static String E()
    {
        return b("pris_subRefresh", null);
    }

    public static void E(String s1)
    {
        a("pris_SaveSubSequence", s1);
    }

    public static String F()
    {
        return b("pris_illegalReport", null);
    }

    public static void F(String s1)
    {
        a("pris_font", s1);
    }

    public static String G()
    {
        return b("pris_infoGet", null);
    }

    public static void G(String s1)
    {
        a("pris_searchEngine", s1);
    }

    public static String H()
    {
        return b("pris_favoriteAdd", null);
    }

    public static void H(String s1)
    {
        a("pris_errReport", s1);
    }

    public static String I()
    {
        return b("pris_favoriteDel", null);
    }

    public static void I(String s1)
    {
        a("app_mid", s1);
    }

    public static String J()
    {
        return b("pris_favoriteGet", null);
    }

    public static void J(String s1)
    {
        if(a)
            com.nnee.p_d.cls_b.a().a(b, s1);
        else
            com.nnee.p_d.cls_c.a().a(b, s1);
    }

    public static String K()
    {
        return b("pris_statisticsReport", null);
    }

    public static String L()
    {
        return b("pris_SaveSubSequence", null);
    }

    public static String M()
    {
        return b("pris_font", null);
    }

    public static String N()
    {
        return b("pris_searchEngine", null);
    }

    public static String O()
    {
        return b("pris_errReport", null);
    }

    public static long P()
    {
        String s1;
        long l1;
        s1 = b("service_url_updated", null);
        l1 = 0L;
        long l2 = Long.parseLong(s1);
        l1 = l2;
_L2:
        return l1;
        Exception exception;
        exception;
        if(true) goto _L2; else goto _L1
_L1:
    }

    public static String Q()
    {
        return b("app_mid", null);
    }

    public static long R()
    {
        String s1;
        long l1;
        s1 = b("start_up_time", null);
        l1 = 0L;
        long l2 = Long.parseLong(s1);
        l1 = l2;
_L2:
        return l1;
        Exception exception;
        exception;
        if(true) goto _L2; else goto _L1
_L1:
    }

    public static boolean S()
    {
        boolean flag;
        long l1;
        flag = true;
        l1 = System.currentTimeMillis();
        long l2;
        long l3;
        l2 = P();
        l3 = R();
        if(l2 <= l3) goto _L2; else goto _L1
_L1:
        if(e.e)
            com.nnee.p_g.cls_b.e("PRISConfig", (new StringBuilder()).append("IsLoadServiceUrl time is:").append(System.currentTimeMillis() - l1).toString());
_L4:
        return flag;
_L2:
        Cursor cursor;
        boolean flag1;
        String as[] = new String[1];
        as[0] = "count(*)";
        cursor = com.nnee.p_b.p_a.cls_d.h().a().getContentResolver().query(ae.f, as, " select count(*) from config where type = -1", null, null);
        if(cursor == null)
            break MISSING_BLOCK_LABEL_211;
        flag1 = cursor.moveToFirst();
        if(!flag1)
            break MISSING_BLOCK_LABEL_211;
        long l4;
        long l5;
        l4 = o.size();
        l5 = cursor.getLong(cursor.getColumnIndex("count(*)"));
        Exception exception;
        Exception exception1;
        boolean flag2;
        if(l4 <= l5)
            flag2 = flag;
        else
            flag2 = false;
        flag = flag2;
        if(cursor == null)
            break MISSING_BLOCK_LABEL_167;
        cursor.close();
        if(e.e)
            com.nnee.p_g.cls_b.e("PRISConfig", (new StringBuilder()).append("IsLoadServiceUrl time is:").append(System.currentTimeMillis() - l1).toString());
        continue; /* Loop/switch isn't completed */
        exception1;
        exception1.printStackTrace();
        flag = false;
        if(false)
            ;
        else
            break MISSING_BLOCK_LABEL_155;
        exception;
        if(e.e)
            com.nnee.p_g.cls_b.e("PRISConfig", (new StringBuilder()).append("IsLoadServiceUrl time is:").append(System.currentTimeMillis() - l1).toString());
        throw exception;
        if(true) goto _L4; else goto _L3
_L3:
    }

    public static void a(int i1)
    {
        a("stat_control", String.valueOf(i1));
    }

    public static void a(long l1)
    {
        a("last_offline_cache_notify_size", String.valueOf(l1));
    }

    public static void a(Context context, LinkedList linkedlist)
    {
        if(context != null && linkedlist.size() > 0) goto _L2; else goto _L1
_L1:
        return;
_L2:
        long l1;
        SQLiteDatabase sqlitedatabase;
        int i1;
        StringBuilder stringbuilder;
        l1 = System.currentTimeMillis();
        sqlitedatabase = ac.a(context).getWritableDatabase();
        sqlitedatabase.beginTransaction();
        i1 = linkedlist.size();
        stringbuilder = new StringBuilder();
        stringbuilder.append(" INSERT OR REPLACE INTO ");
        stringbuilder.append("config");
        stringbuilder.append("(");
        stringbuilder.append("group_name");
        stringbuilder.append(",");
        stringbuilder.append("name");
        stringbuilder.append(",");
        stringbuilder.append("value");
        stringbuilder.append(",");
        stringbuilder.append("type");
        stringbuilder.append(")");
        stringbuilder.append(" VALUES ");
        stringbuilder.append("(?,?,?,?);");
        SQLiteStatement sqlitestatement1 = sqlitedatabase.compileStatement(stringbuilder.toString());
        int j1 = 0;
_L3:
        if(j1 >= i1)
            break MISSING_BLOCK_LABEL_206;
        a(sqlitedatabase, (n)linkedlist.get(j1), sqlitestatement1);
        j1++;
          goto _L3
        sqlitedatabase.setTransactionSuccessful();
        SQLiteStatement sqlitestatement = sqlitestatement1;
_L5:
        sqlitedatabase.endTransaction();
        if(sqlitestatement != null)
            sqlitestatement.close();
        if(e.e)
            com.nnee.p_g.cls_b.e("PRISConfig", (new StringBuilder()).append("save Service URL time is: ").append(System.currentTimeMillis() - l1).toString());
        if(true) goto _L1; else goto _L4
_L4:
        Exception exception;
        exception;
        Exception exception1;
        sqlitestatement = null;
        exception1 = exception;
_L6:
        exception1.printStackTrace();
          goto _L5
        Exception exception2;
        exception2;
        sqlitestatement = sqlitestatement1;
        exception1 = exception2;
          goto _L6
    }

    public static void a(SQLiteDatabase sqlitedatabase, n n1, SQLiteStatement sqlitestatement)
    {
        if(sqlitedatabase != null && n1 != null && sqlitestatement != null) goto _L2; else goto _L1
_L1:
        return;
_L2:
        sqlitestatement.bindString(1, b);
        if(n1.d() == null) goto _L4; else goto _L3
_L3:
        sqlitestatement.bindString(2, n1.d());
_L5:
        if(n1.a() == null)
            break MISSING_BLOCK_LABEL_84;
        sqlitestatement.bindString(3, n1.a());
_L6:
        sqlitestatement.bindLong(4, -1L);
        sqlitestatement.execute();
          goto _L1
        Exception exception;
        exception;
        exception.printStackTrace();
          goto _L1
_L4:
        sqlitestatement.bindNull(2);
          goto _L5
        sqlitestatement.bindNull(3);
          goto _L6
    }

    public static void a(String s1)
    {
        a("user_name", s1);
    }

    public static void a(String s1, long l1)
    {
        a((new StringBuilder()).append("dir>").append(s1).toString(), String.valueOf(l1));
    }

    public static void a(String s1, String s2)
    {
        if(a)
            com.nnee.p_d.cls_b.a().b(b, s1, s2);
        else
            com.nnee.p_d.cls_c.a().a(b, s1, s2);
    }

    public static void a(boolean flag)
    {
        a("textmode_dlg", Boolean.toString(flag));
    }

    public static boolean a()
    {
        return Boolean.parseBoolean(b("textmode_dlg", Boolean.toString(true)));
    }

    public static int b()
    {
        String s1 = b("stat_control", "0");
        int j1 = Integer.parseInt(s1);
        int i1 = j1;
_L2:
        return i1;
        Exception exception;
        exception;
        exception.printStackTrace();
        i1 = 0;
        if(true) goto _L2; else goto _L1
_L1:
    }

    public static long b(long l1)
    {
        String s1;
        s1 = b("last_offline_cache_notify_size", null);
        if(s1 == null)
            break MISSING_BLOCK_LABEL_20;
        long l2 = Long.parseLong(s1);
        l1 = l2;
_L2:
        return l1;
        NumberFormatException numberformatexception;
        numberformatexception;
        numberformatexception.printStackTrace();
        if(true) goto _L2; else goto _L1
_L1:
    }

    public static String b(String s1, String s2)
    {
        String s3;
        if(a)
            s3 = com.nnee.p_d.cls_b.a().a(b, s1, s2);
        else
            s3 = com.nnee.p_d.cls_c.a().b(b, s1, s2);
        return s3;
    }

    public static void b(int i1)
    {
        a("anonyumous_favorite_count", String.valueOf(i1));
    }

    public static void b(String s1)
    {
        a("user_nick_name", s1);
    }

    public static void b(boolean flag)
    {
        a("user_remember_password", Boolean.toString(flag));
    }

    public static int c(int i1)
    {
        String s1;
        s1 = b("anonyumous_favorite_count", null);
        if(s1 == null)
            break MISSING_BLOCK_LABEL_18;
        int j1 = Integer.parseInt(s1);
        i1 = j1;
_L2:
        return i1;
        Exception exception;
        exception;
        exception.printStackTrace();
        if(true) goto _L2; else goto _L1
_L1:
    }

    public static String c()
    {
        return b("user_name", null);
    }

    public static void c(long l1)
    {
        a("service_url_updated", Long.toString(l1));
    }

    public static void c(String s1)
    {
        a("user_password", com.nnee.p_pr.a.r.b(s1));
    }

    public static void c(boolean flag)
    {
        a("user_anonymity", Boolean.toString(flag));
    }

    public static String d()
    {
        return b("user_nick_name", null);
    }

    public static void d(int i1)
    {
        a("anonyumous_subscribe_count", String.valueOf(i1));
    }

    public static void d(long l1)
    {
        a("start_up_time", Long.toString(l1));
    }

    public static void d(String s1)
    {
        a("last_notification", s1);
    }

    public static void d(boolean flag)
    {
        a("first_login", Boolean.toString(flag));
    }

    public static int e(int i1)
    {
        String s1;
        s1 = b("anonyumous_subscribe_count", null);
        if(s1 == null)
            break MISSING_BLOCK_LABEL_18;
        int j1 = Integer.parseInt(s1);
        i1 = j1;
_L2:
        return i1;
        Exception exception;
        exception;
        exception.printStackTrace();
        if(true) goto _L2; else goto _L1
_L1:
    }

    public static void e()
    {
        J("user_name");
    }

    public static void e(String s1)
    {
        a("last_pris_message_updated", s1);
    }

    public static long f(String s1)
    {
        String s2 = b((new StringBuilder()).append("dir>").append(s1).toString(), null);
        if(s2 == null) goto _L2; else goto _L1
_L1:
        long l2 = Long.parseLong(s2);
        long l1 = l2;
_L4:
        return l1;
        NumberFormatException numberformatexception;
        numberformatexception;
        numberformatexception.printStackTrace();
_L2:
        l1 = -1L;
        if(true) goto _L4; else goto _L3
_L3:
    }

    public static void f()
    {
        J("user_nick_name");
    }

    public static String g()
    {
        return com.nnee.p_pr.a.r.c(b("user_password", null));
    }

    public static void g(String s1)
    {
        a("stat_url", s1);
    }

    public static void h()
    {
        J("user_password");
    }

    public static boolean h(String s1)
    {
        boolean flag = true;
        String s2 = b("software_version", null);
        if(s2 != null && s2.compareToIgnoreCase(s1) >= 0)
            flag = false;
        return flag;
    }

    public static void i(String s1)
    {
        a("software_version", s1);
    }

    public static boolean i()
    {
        return Boolean.parseBoolean(b("user_remember_password", Boolean.toString(true)));
    }

    public static String j()
    {
        return b("last_notification", null);
    }

    public static void j(String s1)
    {
        a("user_anonymity", s1);
    }

    public static String k()
    {
        return b("last_pris_message_updated", null);
    }

    public static void k(String s1)
    {
        a("pris_login", s1);
    }

    public static String l()
    {
        return b("stat_url", null);
    }

    public static void l(String s1)
    {
        a("pris_coverImage", s1);
    }

    public static void m(String s1)
    {
        a("pris_shortUrl", s1);
    }

    public static boolean m()
    {
        return Boolean.parseBoolean(b("user_anonymity", Boolean.toString(true)));
    }

    public static void n(String s1)
    {
        a("pris_userGet", s1);
    }

    public static boolean n()
    {
        return Boolean.parseBoolean(b("first_login", Boolean.toString(true)));
    }

    public static int o()
    {
        String s1 = b("anonyumous_favorite_count", null);
        if(s1 == null) goto _L2; else goto _L1
_L1:
        int j1 = Integer.parseInt(s1);
        int i1 = j1;
_L4:
        return i1;
        Exception exception;
        exception;
        exception.printStackTrace();
_L2:
        i1 = 0;
        if(true) goto _L4; else goto _L3
_L3:
    }

    public static void o(String s1)
    {
        a("pris_userModifyInfo", s1);
    }

    public static int p()
    {
        String s1 = b("anonyumous_subscribe_count", null);
        if(s1 == null) goto _L2; else goto _L1
_L1:
        int j1 = Integer.parseInt(s1);
        int i1 = j1;
_L4:
        return i1;
        Exception exception;
        exception;
        exception.printStackTrace();
_L2:
        i1 = 0;
        if(true) goto _L4; else goto _L3
_L3:
    }

    public static void p(String s1)
    {
        a("pris_userModifyIcon", s1);
    }

    public static String q()
    {
        return b("user_anonymity", null);
    }

    public static void q(String s1)
    {
        a("pris_userModifyPassword", s1);
    }

    public static String r()
    {
        return b("pris_login", null);
    }

    public static void r(String s1)
    {
        a("pris_subList", s1);
    }

    public static String s()
    {
        return b("pris_coverImage", null);
    }

    public static void s(String s1)
    {
        a("pris_subRecommend", s1);
    }

    public static String t()
    {
        return b("pris_shortUrl", null);
    }

    public static void t(String s1)
    {
        a("pris_subGet", s1);
    }

    public static String u()
    {
        return b("pris_userGet", null);
    }

    public static void u(String s1)
    {
        a("pris_subAdd", s1);
    }

    public static String v()
    {
        return b("pris_userModifyInfo", null);
    }

    public static void v(String s1)
    {
        a("pris_subDel", s1);
    }

    public static String w()
    {
        return b("pris_userModifyIcon", null);
    }

    public static void w(String s1)
    {
        a("pris_subGetSummary", s1);
    }

    public static String x()
    {
        return b("pris_userModifyPassword", null);
    }

    public static void x(String s1)
    {
        a("pris_subRefresh", s1);
    }

    public static String y()
    {
        return b("pris_subList", null);
    }

    public static void y(String s1)
    {
        a("pris_illegalReport", s1);
    }

    public static String z()
    {
        return b("pris_subRecommend", null);
    }

    public static void z(String s1)
    {
        a("pris_infoGet", s1);
    }

    static boolean a = false;
    public static String b = "con_user";
    public static final String c = "user_name";
    public static final String d = "user_password";
    public static final String e = "user_nick_name";
    public static final String f = "user_remember_password";
    public static final String g = "user_anonymity";
    public static final String h = "software_version";
    public static final String i = "first_login";
    public static final String j = "textmode_dlg";
    public static final String k = "feed_updated";
    public static final String l = "service_url_updated";
    public static final String m = "start_up_time";
    public static final String n = "app_mid";
    static final ArrayList o;
    private static final int p = -1;
    private static final String q = "last_notification";
    private static final String r = "anonyumous_favorite_count";
    private static final String s = "anonyumous_subscribe_count";
    private static final String t = "last_pris_message_updated";
    private static final String u = "last_offline_cache_notify_size";
    private static final String v = "stat_url";
    private static final String w = "stat_control";
    private static final String x = "dir>";

    static 
    {
        a = false;
        o = new ArrayList();
        o.add("pris_statisticsReport");
        o.add("pris_favoriteGet");
        o.add("pris_favoriteDel");
        o.add("pris_favoriteAdd");
        o.add("pris_illegalReport");
        o.add("pris_subRefresh");
        o.add("pris_subGetSummary");
        o.add("pris_subDel");
        o.add("pris_subAdd");
        o.add("pris_subGet");
        o.add("pris_subRecommend");
        o.add("pris_subList");
        o.add("pris_userModifyPassword");
        o.add("pris_userModifyIcon");
        o.add("pris_userModifyInfo");
        o.add("pris_userGet");
        o.add("pris_coverImage");
        o.add("pris_login");
        o.add("pris_infoGet");
        o.add("pris_SaveSubSequence");
        o.add("pris_font");
        o.add("pris_searchEngine");
        o.add("pris_errReport");
        o.add("pris_shortUrl");
    }
}
